package me.zhengjie.modules.inspection.repository;

import me.zhengjie.modules.inspection.domain.InspectionItem;
import me.zhengjie.modules.inspection.domain.InspectionTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @author xuyukun
* @date 2019-07-03
*/
public interface InspectionTemplateRepository extends JpaRepository<InspectionTemplate, Long>, JpaSpecificationExecutor {
    @Query("select t from InspectionTemplate t where objId = ?1")
    List<InspectionTemplate> findByObjectId(Long  dictId);
}